//
//  Config.h
//  GoBangGraduationProject
//
//  Created by 刘人华 on 16/5/18.
//  Copyright © 2016年 dahua. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, OccupyType) {
    OccupyTypeEmpty = 0, //空
    OccupyTypeUser,      //用户
    OccupyTypeAI,        //电脑
    OccupyTypeEnemy,     //对手
    OccupyTypeUnknown,   //未知
    OccupyTypeWhite,     //白旗
    OccupyTypeBlack,     //黑旗
};

typedef NS_ENUM(NSInteger, DirectionType) {
    
    DirectionTypeTop = 0,
    DirectionTypeRightTop,
    DirectionTypeRight,
    DirectionTypeRightDown,
    DirectionTypeDown,
    DirectionTypeLeftDown,
    DirectionTypeLeft,
    DirectionTypeLeftTop,
};

typedef NS_ENUM(NSInteger, GobangColor) {
    GobangColorWhite = 0,  //白棋
    GobangColorBlack,      //黑棋
    GobangColorBlue,       //蓝棋
    GobangColorGreen,      //绿棋
    GobangColorPurple,     //紫棋
    GobangColorRed,        //红棋
    GobangColorYellow,     //黄棋
};
static NSInteger const DHBoardSize = 15;
static NSString * const ServiceType = @"dh-gobang";

/**
 *  颜色
 */
#define App_Color [UIColor colorWithRed:239.0/255.0 green:69.0/255.0 blue:40.0/255.0 alpha:1.0]
#define App_Color_Light [UIColor colorWithRed:250.0/255.0 green:128.0/255.0 blue:114.0/255.0 alpha:1.0]

/**
 *  沙河
 */
#define IsSounds @"isSounds"
#define IsWhiteSente @"isWhiteSente"
#define IsPlayerSente @"isPlayerSente"
#define IsHaveUsed @"isFirstUse"

#define UserColor @"userColor"
#define AIColor   @"aiColor"

#define ColorNames @[@"stone_white", @"stone_black", @"stone_blue", @"stone_green", @"stone_purple", @"stone_red",  @"stone_yellow"]

/**
 *  通知
 */
#define AIWhoWinNotify @"AIWhoWinNotify"
#define PPWhoWinNotify @"PPWhoWinNotify"

/**
 *  多语言
 */
#if 1
#define ATLocalizedString(key, comment)  NSLocalizedString(key, comment)
#define ATLocalizedStringFromTable(key, tbl, comment) NSLocalizedStringFromTable(key, tbl, comment)
#define ATLocalizedStringFromTableInBundle(key, tbl, bundle, comment) NSLocalizedStringFromTableInBundle(key, tbl, bundle, comment)
#define ATLocalizedStringWithDefaultValue(key, tbl, bundle, val, comment) NSLocalizedStringWithDefaultValue(key, tbl, bundle, val, comment)
#else
#define ATLocalizedString(key, comment) (comment)
#define ATLocalizedStringFromTable(key, tbl, comment) (comment)
#define ATLocalizedStringFromTableInBundle(key, tbl, bundle, comment) (comment)
#define ATLocalizedStringWithDefaultValue(key, tbl, bundle, val, comment) (comment)
#endif

@interface Config : NSObject



@end
